forum

Home / DeveloperSection / Forums / WSH VBScript switch workSHEET in already open Excel workBOOK

WSH VBScript switch workSHEET in already open Excel workBOOK

Takeshi Okada310320-Jun-2013
Hi Expert,

Is it possible to switch worksheets within a workbook in a WSH VBScript (referenced by name) and if so, how would I do it?

This will be used in a script that already opens an Excel file. I want to access a worksheets called "Version Control".

The following is how I am opening the workbook:

xlsFile = path & "\xml-sitemap.xls"
Set objExcel = WScript.CreateObject("Excel.Application")
objExcel.Workbooks.open(xlsFile)

Any help on above is really appreciated.

Updated on 20-Jun-2013

Can you answer this question?


Answer

1 Answers

Liked By